package com.service;

import com.exception.CustomException;
import com.pageResult.PageResult;
import com.pojo.Permission;
import com.pojo.Role;
import com.query.QueryPageBean;

import java.util.List;

public interface PermissionService {

    //查询所有
    List<Permission> queryAll();

    //查询检查组（分页+条件）
    PageResult selectByQueryString(QueryPageBean queryPageBean);

    //添加
    void add(Permission permission);
    //根据id查询
    Permission queryById(Integer id);
    //修改
    void update(Permission permission);

    /*删除*/
    void delete(Integer id) throws CustomException;


}
